import request from '@/utils/request'

// 查询期货策略仓位列表
export function listFutureStrategyPosition(query) {
  return request({
    url: '/kylin/futureStrategyPosition/list',
    method: 'get',
    params: query
  })
}

// 查询期货策略仓位详细
export function getFutureStrategyPosition(positionId) {
  return request({
    url: '/kylin/futureStrategyPosition/' + positionId,
    method: 'get'
  })
}

// 新增期货策略仓位
export function addFutureStrategyPosition(data) {
  return request({
    url: '/kylin/futureStrategyPosition',
    method: 'post',
    data: data
  })
}

// 修改期货策略仓位
export function updateFutureStrategyPosition(positionId, data) {
  return request({
    url: '/kylin/futureStrategyPosition/' + positionId,
    method: 'put',
    data: data
  })
}

// 删除期货策略仓位
export function delFutureStrategyPosition(ids) {
  return request({
    url: '/kylin/futureStrategyPosition',
    method: 'delete',
    data: {
      ids: ids
    }
  })
}